home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / msqc25t1 / popup.h < prev    next >
Text File  |  1990-09-27  |  1KB  |  36 lines

  1. /* popup.h: Prototype and typedef for popup.c library */
  2.  
  3. typedef struct {
  4.     int top, left, bottom, right,       /* border location */
  5.     style,                              /* border style */
  6.     normal, hilite,                     /* test attributes */
  7.     normback, hiback;
  8. char *text;                             /* fixed text contents */
  9. int lastrow, lastcol;                   /* last cursor position */
  10. } POPUP;
  11.  
  12. typedef struct {
  13.     int row,                            /* row where bar appears */
  14.         interval,                       /* cols between first chars */
  15.         fore, back;                     /* foreground/background colors */
  16.     char *choice;                       /* pointer to text contents */
  17. } MENUBAR;
  18.  
  19. void popShow (POPUP *pop);              /* display popup window */
  20.  
  21. void popKeep (POPUP *win);              /* save window state */
  22.  
  23. void popUse (POPUP *win);               /* re-enable a window */
  24.  
  25. void popCenter (POPUP *win, int row, char *string);
  26.                                         /*Center string in window */
  27.  
  28. void popRewrite (POPUP *win, int row, int fgcolor, int bgcolor);
  29.                                 /* Rewrite pop-up row in new colors */
  30.  
  31. void popHilite (POPUP *win, int row);   /* Hilight text in popup row */
  32.  
  33. void menubar (MENUBAR *spec);   /* Write the menu bar described by spec */
  34.  
  35.  
  36.